<template>
    <div class="z-title">
        <span class="z-title-container" @click="goBack">
            <i class="iconfont icon-arrow-left"></i>
            <span class="z-title-text">
                <slot name="z-title"></slot>
            </span>
        </span>
    </div>
</template>
<script>
    export default {
        name:'zTitle',
        methods:{
            //点击返回上一页
            goBack: function() {
                window.history.back();
            },
        }
    }
</script>
